home *** CD-ROM | disk | FTP | other *** search
- #include <stdlib.h>
- #include "expl.h"
-
- extern void bomb_init (short, short, int, int, char);
-
- unsigned char seq_counter;
-
- static seq_data[]=
- {5, 8, 6, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
-
-
- int seq_init0 (void)
- {
- return (0);
- }
-
-
- void seq_init (void)
- {
- seq_counter = 0;
- }
-
-
- void seq_move (void)
- {
- int i;
-
- if ((seq_counter < 12) && ((i = seq_data[seq_counter]) > 0)) {
- do {
- double x, y, vx, vy;
- x = drand ()* 16.0 - 8.0;
- y = drand ()* 16.0 - 8.0;
- vx = x * 65536.0 / 1.7;
- vy = y * 65536.0 / 1.7;
- bomb_init (
- (short) x, (short) y,
- (int) vx, (int) vy,
- (char) (rand ()% 6 + 1));
- } while (--i);
- }
- if (++seq_counter > 128)
- seq_counter = 0;
- }
-
-
- void seq_tini (void)
- {
- }
-